﻿@using Senac.Escola.Projeto.Models
@using Senac.ProjetoIntegrador.EducacaoWeb.Models
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap/bootstrap.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery/jquery.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui/jquery-ui.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/bootstrap/css/bootstrap.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui/jquery-ui.css")" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page">
    <div id="logindisplay">
        @Html.Partial("_LogOnPartial")
    </div>
        <header>
            <div class="logo2">
                <img src="@Url.Content("~/Content/themes/base/images/logo2.png")">
            <div class="menu">
            <nav>
                <ul id="menu">
                @{
                    Usuario usuarioAtual = (Usuario)Session[EducacaoWebConstants.SESSION_USUARIO_ATUAL];    
                }
                
                @if (usuarioAtual != null)
                {
                    if (usuarioAtual.TipoUsuario.Nome.ToLower() == "administrador")
                    {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li>
                        <li>@Html.ActionLink("Professor", "Index", "Professor")</li>
                        <li>@Html.ActionLink("Turma", "Index", "Categoria")</li>
                        <li>@Html.ActionLink("Aluno", "Index", "Aluno")</li>
                        <li>@Html.ActionLink("Ajuda", "About", "Home")</li>
                    }
                    if (usuarioAtual.TipoUsuario.Nome.ToLower() == "professor")
                    {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li>
                        <li>@Html.ActionLink("Atividade", "Index", "Atividade")</li>
                        <li>@Html.ActionLink("Ajuda", "About", "Home")</li>

                    }
                    if (usuarioAtual.TipoUsuario.Nome.ToLower() == "aluno")
                    {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li>
                        <li>@Html.ActionLink("Fazer Atividade", "FazerAtividade", "Atividade")</li>
                        <li>@Html.ActionLink("Ajuda", "About", "Home")</li>
                    }
                }
                </ul>
            </nav>
            </div>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        </footer>
    </div>
</body>
</html>
